package com.njwt.cloud.msconsumer.service.hystrix;

import com.njwt.cloud.mscommon.pojo.OrderModel;
import com.njwt.cloud.msconsumer.service.OrderService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;


/**
 * @author <a href="mailto:xingxiao@gtmap.cn">xingxiaofeng</a>
 * @version2.1 2022-04-11
 * @description
 */
 @Component
public class FeignOrderServiceFailure implements OrderService {
    @Override
    public OrderModel getOrder() {

        return new OrderModel(-1,"稍后再加载。。。",-9999);
    }
    @Override
    public OrderModel getOrderById( String orderid){
        return new OrderModel(-1,"稍后再加载。。。",-9999);

    }
    @Override
    public List<OrderModel> getOrderList( OrderModel orderModel){
               List<OrderModel> list=new ArrayList<>();
               list.add(new OrderModel(-1,"稍后再加载。。。",-9999));
        return list;

    }
}
